<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>首页面</title>
    <script src="js/jquery-2.1.0.min.js"></script>
    <script src="js/axios.js"></script>
    <script>
        $(function () {
            $("#btn").on("click",function () {
                axios.get("http://localhost:8080/users/findAll").then(function (reps) {
                    for (var i=0;i<reps.data.length;i++) {
                        var li='<li>'+reps.data[i].username+'</li>';
                        $("#app").append(li);
                    }
                })
            });
        });
    </script>

</head>
<body>
<button id="btn">显示用户信息</button>
<ul id="app">

</ul>
</body>
</html>